# -*- coding: utf-8 -*-
from sqlalchemy import Column, Integer, String, DateTime, func

from utils.work_db import Base

"""
用户简历
"""


class UserResume(Base):
    __tablename__ = 'user_resume'
    resume_id = Column(Integer, primary_key=True, autoincrement=True)
    user_id = Column(Integer, nullable=False)
    resume_name = Column(String)
    real_name = Column(String)
    mobile = Column(String)
    tel = Column(String)
    email = Column(String)
    age = Column(Integer)
    work_intention = Column(String, default='')
    work_history = Column(String, default='')
    # 教育
    education = Column(String, default='')
    user_name = Column(String)
    real_name = Column(String)
    head_img = Column(String)
    resume_status = Column(Integer, default=1)
    status = Column(Integer, default=1)
    create_time = Column(DateTime, default=func.now())
    update_time = Column(DateTime, default=func.now())
    # 出生年月
    birth_day = Column(String)
    # 是否学生
    student_ok = Column(Integer)
    # 性别 1男 2女
    gender = Column(Integer)
    # 学历
    edu_code = Column(Integer)
